<template>
    <el-tabs v-bind="$attrs">
        <el-tab-pane :label="item.label" :name="item.value" v-for="item in tabList" :key="item.value" />
    </el-tabs>
</template>

<script setup>
const tabList = [
    { label: '销售中', value: '1' },
    { label: '已售罄', value: '2' },
    { label: '仓库中', value: '3' }
];
</script>

<style lang="scss" scoped></style>
